package com.ruoyi.mentor.service;

import com.ruoyi.mentor.domain.Examine;
import com.ruoyi.mentor.vo.ExamineVo;
import com.ruoyi.mentor.bo.ExamineQueryBo;
import com.ruoyi.mentor.bo.ExamineAddBo;
import com.ruoyi.mentor.bo.ExamineEditBo;
import com.ruoyi.common.core.page.IServicePlus;
import com.ruoyi.common.core.page.TableDataInfo;

import java.util.Collection;
import java.util.List;

/**
 * 审核信息Service接口
 *
 * @author LH
 * @date 2021-05-22
 */
public interface IExamineService extends IServicePlus<Examine> {
	/**
	 * 查询单个
	 * @return
	 */
	ExamineVo queryById(Long id);

	/**
	 * 查询列表
	 */
    TableDataInfo<ExamineVo> queryPageList(ExamineQueryBo bo);
	/**
	 * 查询列表
	 */
	List<ExamineVo> queryList(ExamineQueryBo bo);

	/**
	 * 根据新增业务对象插入审核信息
	 * @param bo 审核信息新增业务对象
	 * @return
	 */
	Boolean insertByAddBo(ExamineAddBo bo);

	/**
	 * 根据编辑业务对象修改审核信息
	 * @param bo 审核信息编辑业务对象
	 * @return
	 */
	Boolean updateByEditBo(ExamineEditBo bo);

	/**
	 * 校验并删除数据
	 * @param ids 主键集合
	 * @param isValid 是否校验,true-删除前校验,false-不校验
	 * @return
	 */
	Boolean deleteWithValidByIds(Collection<Long> ids, Boolean isValid);

    void examine(String adminName, Integer status, Long studentId, String message);

    Examine getExamineMsg(Integer type, Long id);

	void examineInstructor(String adminName, Integer status, Long insId, String message);
}
